package com.lagou.model;

import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;

/**

 * TODO: 实现封装考试成绩信息

 */
public class Store implements java.io.Serializable{
    private static final long serialVersionUID = 1650510096839060164L;
    /**
     * 时间
     */
    private Date time;
    /**
     * 考试成绩
     */
    private BigDecimal store;

    public Store(Date time, BigDecimal store) {
        this.time = time;
        this.store = store;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public BigDecimal getStore() {
        return store;
    }

    public void setStore(BigDecimal store) {
        this.store = store;
    }

    @Override
    public String toString() {
        return "Store{" +
                "time=" + time +
                ", store=" + store +
                '}';
    }

    public String show() {
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:ss");
        return "时间：" + format.format(time) + "，成绩：" + store;
    }
}
